<%--
  Created by IntelliJ IDEA.
  User: gaosubo
  Date: 2018/1/7
  Time: 16:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html><head lang="en">
    <meta charset="UTF-8">
    <title>党员信息</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="/lib/layui/layui/css/layui.css"/>
    <script type="text/javascript" src="/js/news/jquery-1.9.1.js"></script>
<%--    <script src="/js/base/base.js" type="text/javascript" charset="utf-8"></script>--%>
    <script src="../js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../js/jquery/jquery.cookie.js"></script>
    <script src="/lib/jQuery-File-Upload-master/jquery.ui.widget.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/jQuery-File-Upload-master/jquery.iframe-transport.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="/lib/jQuery-File-Upload-master/jquery.fileupload.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="/js/common/fileupload.js"></script>
    <script type="text/javascript" src="/lib/layui/layui/layui.js"></script>
    <script type="text/javascript" src="/lib/layui/layui/layui.all.js"></script>
</head>
<body>

<div class="bx">
    <!--head开始-->
<%--    <div>--%>
<%--        <h4 id="wz" style="word-wrap:break-word;width: 80%;overflow:hidden;font-size: 15px;margin: 0 auto;color: #333;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h4>--%>
<%--        <img class="imgs" alt="" style="width: 60%;margin: 50px 20%;">--%>
<%--    </div>--%>

    <table id="demo" lay-filter="test"></table>

</div>
<script type="text/javascript" src="../js/spirit/qwebchannel.js"></script>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="score">操作</a>
</script>
<script>
    var id = $.GetRequest().id;
    layui.use('table', function(){
        var table = layui.table;
        table.render({
            elem: '#demo'
            ,url:'/OrgPartyMember/selectOrgDeptandChDept?orgDeptId='+id
            , title: '用户数据表'
            ,cols: [[ //表头
                {field: 'orgDeptName', title: '所属党支部',align:'center' }
                ,{field: 'name', title: '姓名',align:'center' }
                ,{field: 'sex', title: '性别',align:'center'}
                ,{field: 'familyName', title: '民族',align:'center' }
                ,{field: 'tel', title: '联系方式',align:'center'}
                ,{field: ' ', title: '入党日期', align:'center'}
                ,{field: 'education', title: '学历', align:'center'}
                // , {field: 'type', title: '操作', toolbar: '#barDemo'}
                ]]
            ,parseData: function(res){ //res 即为原始返回的数据
                return {
                    "code": 0, //解析接口状态
                    // "msg": res.message, //解析提示文本
                    // "count": res.total, //解析数据长度
                    "data": res.obj //解析数据列表
                };
            }
            , page: true
        });

    });
</script>